maths random returns a number between 0 and 1
there is no such thing as javascript integer therefore we have to use mats.rand with math.floor for returning random integer.
here we will generate random number from 0 to 9
here we will generate random number from 1 to 10
here now everytime you click the button, getRndInteger(min, max) returns a random number between 0 and 9